package com.clay.appointment.repository;

import com.clay.appointment.entity.hospital.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @Author : clay
 * @Description:
 * @Date: Create in 16:14 2021/8/8
 * @Modified By:
 */
@Repository
public interface ScheduleRepository extends MongoRepository<Schedule,String> {
    Schedule getScheduleByHospitalCodeAndHospitalScheduleId(String hospitalCode,String hospitalScheduleId);

    List<Schedule> getScheduleByHospitalCodeAndDepartmentCodeAndWorkDate(String hospitalCode, String departmentCode, Date toDate);
}
